#include <vcl.h>
#pragma hdrstop


#include <System.hpp>


String s;
bool Error = false;
WORD ki = 0, ko = 0, i = 0, n = 0;

int main(int argc, char* argv[])
{
  ReadLn( n );
  ki = 0;
  ko = 0;
  Error = false;
  for ( int stop = n, i = 1; i <= stop; i++)
  {
    ReadLn( s );
    if ( s == "In" )
      ki++;
    if ( s == "Out" )
      ko++;
    if ( ko > ki )
      Error = true;
  }
  if ( Error )
    WriteLn( "Error" );
  else
    if ( ki > ko )
      WriteLn( "Cunning elector" );
    else
      WriteLn( "Just a fantasy" );
  return 0;
}
